Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: getElem lemmas for Vector operations #6324

Merged
merged 1 commit into from
Dec 6, 2024
Merged

Conversation

kim-em
Copy link
Collaborator

@kim-em kim-em commented Dec 6, 2024

This PR adds GetElem lemmas for the basic Vector operations.

The Vector API is still very sparse, but I'm hoping to infill rapidly.

@kim-em kim-em added the changelog-library Library label Dec 6, 2024
@kim-em kim-em requested a review from digama0 as a code owner December 6, 2024 01:23
@kim-em kim-em enabled auto-merge December 6, 2024 01:23
@github-actions github-actions bot temporarily deployed to lean-lang.org/lean4/doc December 6, 2024 01:40 Inactive
@kim-em kim-em added this pull request to the merge queue Dec 6, 2024
@github-actions github-actions bot added the toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN label Dec 6, 2024
leanprover-community-mathlib4-bot added a commit to leanprover-community/batteries that referenced this pull request Dec 6, 2024
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4 that referenced this pull request Dec 6, 2024
Merged via the queue into master with commit 6e60d13 Dec 6, 2024
19 checks passed
@leanprover-community-bot
Copy link
Collaborator

Mathlib CI status (docs):

@leanprover-community-bot leanprover-community-bot added the builds-mathlib CI has verified that Mathlib builds against this PR label Dec 6, 2024

/-! ### take -/

@[simp] theorem getElem_take (a : Vector α n) (m : Nat) (hi : i < min n m) :

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be i < min m n not i < min n m. The latter works, but because the size of Vector.take v m is min m n, using i < min n m makes it less useful in automation (because simp can't necessarily find the proof).

JovanGerb pushed a commit to JovanGerb/lean4 that referenced this pull request Jan 21, 2025
This PR adds `GetElem` lemmas for the basic `Vector` operations.

The `Vector` API is still very sparse, but I'm hoping to infill rapidly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
builds-mathlib CI has verified that Mathlib builds against this PR changelog-library Library toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants